<?php
/**
 * Created by PhpStorm.
 * User: Teddy
 * Date: 16/2/29
 * Time: 下午4:10
 */

date_default_timezone_set('Asia/Chongqing');

$result = '[';

foreach (glob("webui/report/*.html") as $files) {
    if (is_dir($files)){

    }
    else{
        $result  = $result . '{"file":"' . $files . '","time":"' . date('Y-m-d h:i:s', filemtime($files)) . '"},';
    }
}
$result = substr($result,0,strlen($result)-1);
$result = $result . ']';

echo $result;
